首页> 外文OA文献 >Collective Intelligence for Smarter API Recommendations in Python
【2h】

Collective Intelligence for Smarter API Recommendations in Python

机译:python中智能apI建议的集体智慧

代理获取
本网站仅为用户提供外文OA文献查询和代理获取服务,本网站没有原文。下单后我们将采用程序或人工为您竭诚获取高质量的原文,但由于OA文献来源多样且变更频繁,仍可能出现获取不到、文献不完整或与标题不符等情况,如果获取不到我们将提供退款服务。请知悉。

摘要

Software developers use Application Programming Interfaces (APIs) oflibraries and frameworks extensively while writing programs. In this context,the recommendations provided in code completion pop-ups help developers choosethe desired methods. The candidate lists recommended by these tools, however,tend to be large, ordered alphabetically and sometimes even incomplete. A fairamount of work has been done recently to improve the relevance of these codecompletion results, especially for statically typed languages like Java.However, these proposed techniques rely on the static type of the object andare therefore inapplicable for a dynamically typed language like Python. Inthis paper, we present PyReco, an intelligent code completion system for Pythonwhich uses the mined API usages from open source repositories to order theresults based on relevance rather than the conventional alphabetic order. Torecommend suggestions that are relevant for a working context, a nearestneighbor classifier is used to identify the best matching usage among all theextracted usage patterns. To evaluate the effectiveness of our system, the codecompletion queries are automatically extracted from projects and testedquantitatively using a ten-fold cross validation technique. The evaluationshows that our approach outperforms the alphabetically ordered APIrecommendation systems in recommending APIs for standard, as well as,third-party libraries.
机译:软件开发人员在编写程序时会广泛使用库和框架的应用程序编程接口(API)。在这种情况下,代码完成弹出窗口中提供的建议可帮助开发人员选择所需的方法。但是,这些工具推荐的候选列表往往很大,按字母顺序排列,有时甚至不完整。最近已经进行了大量工作来改善这些代码完成结果的相关性,尤其是对于像Java这样的静态类型的语言而言。然而,这些提议的技术依赖于对象的静态类型,因此不适用于像Python这样的动态类型的语言。在本文中,我们介绍了PyReco,这是一种用于Python的智能代码完成系统,该系统使用从开源存储库中提取的API使用情况,根据相关性而不是传统的字母顺序对结果进行排序。为了推荐与工作环境相关的建议,最近邻居分类器用于识别所有提取的使用模式中最匹配的用法。为了评估我们系统的有效性,自动从项目中提取代码完成查询,并使用十倍交叉验证技术进行定量测试。评估表明,在为标准库和第三方库推荐API方面,我们的方法优于按字母顺序排列的API推荐系统。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
代理获取

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号